package app.goods.info.utils;

import java.util.HashMap;
import java.util.Map;

import app.goods.info.constants.GlobalCache;

public class UrlUtils {
	public static String getRequestUrl(String queryUrl) {
		for (Map.Entry<String, String> entry : builQueryParameters().entrySet()) {
			queryUrl = queryUrl.concat(entry.getKey()).concat("=").concat(entry.getValue()).concat("&");
		}
		return queryUrl;
	}

	public static Map<String, String> builQueryParameters() {
		Map<String, String> queryMap = new HashMap<String, String>();
		queryMap.put("token", GlobalCache.getInstance().getLoginToken());
		queryMap.put("source", "2");
		queryMap.put("device_id", "88:10:8f:44:0c:bc");
		return queryMap;
	}

}
